package com.fourmob.datetimepicker.date;

public interface DatePickerController {
    /**
     * 获取星期
     *
     * @return int
     */
    public abstract int getFirstDayOfWeek();

    /**
     * 获取最大年份
     *
     * @return int
     */
    public abstract int getMaxYear();

    /**
     * 获取最小年份
     *
     * @return int
     */
    public abstract int getMinYear();

    /**
     * 获取选中天数
     *
     * @return SimpleMonthAdapter.CalendarDay
     */
    public abstract SimpleMonthAdapter.CalendarDay getSelectedDay();


    /**
     * 选中日期年月日
     *
     * @param year
     * @param month
     * @param day
     */
    public abstract void onDayOfMonthSelected(int year, int month, int day);

    /**
     * 选中年份
     *
     * @param year
     */
    public abstract void onYearSelected(int year);

    /**
     * 注册监听
     *
     * @param onDateChangedListener
     */
    public abstract void registerOnDateChangedListener(DatePickerDialog.OnDateChangedListener onDateChangedListener);

    /**
     * 震动效果
     */
    public abstract void tryVibrate();
}
